// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 1;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter [F1], Haven's southern fort in the Kranas Woods. You are now standing on Havenite soil. Haven officially owns all lands its forts rest on.";
	text2 = "The walls are intact, and guards watch the entrances. People of the Kranas wander about, here to trade, petition Haven for aid, and so on. So outsiders are seeing [F1] in its current state, which is embarrassing.";
	text3 = "Most of the buildings have been abandoned. The walls are neglected. Most of the fort is dusty and hollow. It's almost like all of the facilities were stripped out and sold. It will take a lot of work to make this place a suitable refuge.";
	text4 = "This fort is now under your control. You have access to its resources, and you can rebuild its buildings and shops. Also, you can now recruit Kranas Woods warriors in the Edit Party window.";
	code =
		sf(this_town,1,1);
		sf(1,0,1);
		set_town_visibility(1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "This used to be an imposing meeting hall, here to impress and intimidate the local Ro. Now it is a jumbled warehouse.";
	text2 = "Everything is thoroughly disorganized. Enough so that you have suspicions. In this chaos, it would be easy for a corrupt official to divert goods, sell them, and pocket the money.";
	text3 = "When your mission is done, officials are going to have to come out here and clean house. For now, you have far more important things to worry about.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You find several beds, placed here for honored travelers. At least nobody sold the blankets and pillows.";
	text2 = "The beds to the north look clean enough to be tolerable. You can rest here.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0 && portal_convo() > 0;
	text1 = "The mirror starts to sparkle when you pass by. Someone far away strongly wishes to speak with you.";
	text2 = "(Use the mirror to talk to Haven. When it is sparkling, someone is trying to contact you.)";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Chief Tereza

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "The chief of [F1] is sitting alone in this hall. She is very young for someone of this rank. That she is here without assistants or guards makes her vigil a lonely one.";
	text2 = "She rises to her feet and bows deeply. _I welcome you, [P] [N]. I am Chief Tereza. I have been eager for your arrival. We know that your presence can only improve things._";
	text5 = "As you speak, Chief Tereza constantly pulls maps and documents off of the shelves, rattling off trivia about the economics of the Kranas Woods. You frequently have to prod her to get to the point. She is young and very nervous.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Tell me the current situation._";
	text1 = "_Ah. Well. I know Governor Yvette wants the honor of doing the full report. She is in Ssilyn. She was pretty firm about it. Still, I must answer questions if asked._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Are the Kranas Woods calm?_";
	text1 = "_They are tense, but calm. All have heard about the raids in the Gentle Coast. All know someone tried to kill you. All expect, um, bad things._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(80,4) < 4;
	question = "_Tell me about their Raasa._";
	text1 = "_Raasa Khamm is in Ssilyn. He has been urging all the clans to stay calm. I've met him twice. He truly seems to appreciate all Haven does for the Rokaj._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(80,8) >= 4;
	question = "_Tell me about the new Raasa._";
	text1 = "_Ummm ... Acting Raasa. He is called Rabila. I've never met him. Everyone is waiting to see what he will do while he has power. Again, things are tense._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_I'd like to know more about their forest._";
	text1 = "_It's enchanted. I've never served in one before. I've never served much of anywhere, to be honest. The forest is alive. Parts of it can think. It watches us. I can't do anything about it. I just keep our soldiers safe._";
	text2 = "_Lately, though, things have been much worse. We see creatures moving in the woods. Travelers are disappearing. The mines are being lost to invaders. Plant invaders._";
	
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_How do you keep our troops safe?_";
	text1 = "_I tell them to stay on the roads, mainly. The trees keep to themselves as long as you have good stone under your feet._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(80,20) > 0;
	question = "_I found piles of bones in a sacred grove._";
	text1 = "_Oh. I've heard rumors. The Kranas sometimes take the sick and old to the groves. They don't come back._";
	text2 = "_That's only what I've heard, though, and you know how soldiers gossip. I hope to never get anywhere near their groves._";

begintalknode;
	state = 12;
	nextstate = 22;
	condition = 1;
	question = "_How are our soldiers doing?_";
	text1 = "_Ah. Yes. Well. Our soldiers here are properly trained and equipped. Yes. Um. Governor Yvette makes sure they get everything they need, and more. Which is good, because they are used so often._";

begintalknode;
	state = 22;
	nextstate = -1;
	condition = 1;
	question = "_Really? Why?_";
	text1 = "_Governor Yvette has been a lot more aggressive about using the resources of the Kranas Woods for the good of Haven. And the local Ro sometimes get ... Well, the Governor asked me not to talk about it. She will give you her report._";

begintalknode;
	state = 10;
	nextstate = 15;
	condition = 1;
	question = "_I have inspected this fort._";
	text1 = "_Ah. I expected this._ She flinches, as if expecting a blow. _I've done all I can with the resources I have._";

begintalknode;
	state = 15;
	nextstate = 10;
	condition = 1;
	question = "_Let's talk about something else._";
	text1 = "She sighs with relief. _All right. Gladly._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I'd like to know how everything decayed this badly._";
	text1 = "_It is difficult to say. There are so many factors. I am under instructions to not speak about it. It is too complicated for me to fully describe. I can't say more._";
	
begintalknode;
	state = 16;
	nextstate = 17;
	condition = 1;
	question = "_I am a [P]. This is an order._";
	text1 = "She starts to gently shake. _I can't really say. Resources are diverted. Not by me. There are orders. I mean ... I am sorry, [P]. I am under orders from a more powerful official._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_A more powerful official?_";
	text1 = "_I was ordered to not ... not ..._ She quietly gives up. _Governor Yvette told me to tell you as little as possible. She is my superior. It was an order. I don't want her to send me to explore the groves._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Why haven't you changed things?_";
	text1 = "_Because I am only a Chief, and there are people above me. And they want things done a certain way. They want certain things to be done with the resources. I'm all alone out here. I won't violate orders._";
	text2 = "_I hate to admit it, but I am somewhat inexperienced. The soldiers and merchants and officials outwit me no matter what I try to do._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_What do you want me to do?_";
	text1 = "_I would never break the chain of command. I can only tell you what I was ordered to tell you: Go to Ssilyn and get the full report from Governor Yvette. I'm sure you will be wise enough to know what to do then._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = gf(80,9) == 2;
	question = "_Governor Yvette will maintain her post._";
	text1 = "_Oh. Well, I am glad I violated none of her orders. I would be in big trouble if I had._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = gf(80,9) == 3;
	question = "_Governor Yvette will be replaced._";
	text1 = "Chief Tereza looks guardedly optimistic. _I'm glad that is your intention. Until I see what actually happens, I must follow the orders of the Governor._";

begintalknode;
	state = 10;
	nextstate = 18;
	condition = gf(1,11) < 2;
	question = "_I want to help restore this fort._";
	text1 = "_I am glad. This could be a great fort if we had enough resources to properly rebuild. It has been a chaotic time, though. Monster activity has increased lately. These creatures ... these rootlings. They lurk in the underbrush, waiting for us._";
	text2 = "_This has hurt our production. Haven owns one mine in this region. The Walkwood Mines._";

begintalknode;
	state = 18;
	nextstate = 19;
	condition = 1;
	question = "_And I suppose things are falling apart there too?_";
	text1 = "_They are. It is a quality mine, a good source of ore, and it's under my control. Production there has stopped. Some sort of monster situation. I haven't been able to get good information. You see, the workers there are a problem._";
	code = 
		set_flag(1,11,1);
		toggle_quest(30,1);
	break;

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_Why are the workers there a problem?_";
	text1 = "_They are criminals. Thugs and miscreants from Haven, who are paying for their crimes with labor._";
	text2 = "_As you can imagine, they are not hugely cooperative when danger is about._";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_Where are these mines?_";
	text1 = "_Take the road to the north. The mines are in the mountains in that sort of direction._";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_What exactly should I do there?_";
	text1 = "_According to the vague reports I've been getting, the trees have come to life. They are growing quickly, cutting off the road and keeping the workers out of the mines and barracks. Anyone who tries to cut down the trees is chased off by rootlings._";
	text2 = "_Being able to reach the mine would be a very good start. On the way, you would be able to reach large reserves of ore we have already dug out._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(17,11) > 0 && gf(1,11) == 1;
	question = "_The workers of the Walkwood Mines are back in their barracks._";
	text1 = "You tell Chief Tereza the tale. She sits enchanted. You are reminded how young and inexperienced she is. _Shipments of ore are already arriving from the mine. More supplies are already available for rebuilding._";
	text2 = "_However, this isn't all we can do. We have reached our stores, but we still can't dig out fresh ore._";
	code = 
		set_flag(1,11,2);
		toggle_quest(30,3);
		award_party_xp(MED_QUEST_XP);
		sf(1,6,1);
		activate_mine_resource(11);
	break;		

begintalknode;
	state = 10;
	nextstate = 20;
	condition = gf(1,11) == 2 || gf(1,11) == 3;
	question = "_Can we get more value out of the Walkwood Mines?_";
	text1 = "_Yes, if the mines themselves could be worked. However, the convicts can't work the tunnels. If they were able to, we could get even more iron for the rebuilding effort._";
	code = 
		set_flag(1,11,3);
		toggle_quest(30,4);
	break;

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_Why can't they work the tunnels?_";
	text1 = "She checks her notes. _In their words, the tunnels are 'Full of hideous screeching monsters and I'd rather die than go down there, I swear on my mother's grave.'_";
	text2 = "_They are very emphatic on this point, [P]._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_And I assume that our workers there will be of no use in this situation._";
	text1 = "_Of course, the convicts can't be expected to go into the dark pits and fight. I mean, we could force them. But then they would all be eaten. And then we won't have any more convicts to do the actual work._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_So the person you're asking to clear out the mines is ..._";
	text1 = "_Um, you, yes. We know that Prince Sutter and you have reputations as enthusiastic hunters. We thought that this might provide variety._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(17,12) > 0 && gf(1,11) == 3;
	question = "_The Walkwood Mines have been completely reclaimed._";
	text1 = "_Happily, word of your victory arrived here before you did. The Walkwood Mines are completely restored. Even better, I have made sure all of its iron will be under your control. Nobody would dare steal resources from a [P]._";
	text2 = "She laughs. _How about that. An actual improvement!_";
	code = 
		set_flag(1,11,4);
		toggle_quest(30,10);
		award_party_xp(MED_QUEST_XP);
		sf(1,7,1);
		activate_mine_resource(12);
	break;		

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(1,11) == 4;
	question = "_I still hunger for fresh resources._";
	text1 = "_I wish I could help you, but I have done all I can. The best way to find new supplies of iron is to go to Ssilyn, to the west. Their traders are cunning, but they have what we need._";

	
// Matyas

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "There is a merchant standing behind this long counter. It's not really a shop, though. It's more of a meeting room where Havenites can come to trade with the Ro.";
	text2 = "He is a middle-aged man with stylish clothes and impeccably trimmed hair. He gives you an elegant and courteous bow. _I am honored beyond words to meet you, [P]. I am Matyas, a trader of Haven. Like all of my trade, I have benefited greatly from the courage and wisdom of your family._";
	text3 = "_If I am not overstepping my bounds, I would like to give you a small gift. A humble token of our appreciation._";
	text5 = "Matyas leans against the counter and chats with you. As he speaks, he idly stacks and shifts around the weights of the scale. His long, pale fingers have likely never seen a day of hard work.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(1,12) == 0;
	question = "_You have a gift for me?_";
	text1 = "_Of course._ He removes a ceramic flask from his pouch. _My family contains several skilled alchemists. This potion might be valuable to you in your dangerous travels._";
	text2 = "";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I will not be bribed._";
	text1 = "_Oh! Of course not! I ask nothing in return! This is but a gift freely given, to show loyalty and admiration._";

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_No gift is necessary._";
	text1 = "_Your modesty and humility is admirable. I will be sure to keep this flask set aside in case you change your mind._";

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_Offer me another bribe and I will have you executed._";
	text1 = "Matyas is, justifiably, extremely nervous. He puts the flask away. _I ... I had heard incorrect things about your nature. I truly meant no bribe or offense. I will not offer again._";
	code =
		sf(1,12,1);
		violence(3);
		queen_faction(3);
	break;
	
begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_I will accept your gift._";
	text1 = "You pocket the flask. Matyas smiles. _I am honored._";
	code =
		sf(1,12,1);
		reward_give(340);
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,12) == 1;
	question = "_Any more gifts for me?_";
	text1 = "_Ah ... no. I am sorry to be so unprepared. Just ask around. I am sure many want to offer gifts to the [P]._";
	code =
		sf(1,12,2);
	break;
	
begintalknode;
	state = 40;
	nextstate = 42;
	condition = 1;
	question = "_So what are you doing here?_";
	text1 = "_I am looking for opportunities for my family. Iron mining in the Rokaj can be very profitable, if one engages in the proper diplomacy. Governor Yvette gave me written permission to be here._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_How did you get this permission?_";
	text1 = "_Governor Yvette can be very reasonable and generous to those who provide the proper respect. Who know the correct forms and procedures._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about Governor Yvette._";
	text1 = "_She is a clever and cunning Governor. She knows how to lavishly reward those who pay the proper respect. She also knows how to punish the disloyal. I have nothing unkind to say about her whatsoever._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = gf(80,9) == 2;
	question = "_Governor Yvette will maintain her post._";
	text1 = "_I see. Well, that is good news. I dare not say otherwise. Governor Yvette is reliable, but she can be vengeful as well._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = gf(80,9) == 3;
	question = "_Governor Yvette will be replaced._";
	text1 = "Matyas has to think about how to respond to this. _Governor Yvette could be profitable, and she kept her word. She was also very expensive to deal with. If she is actually replaced, I'm sure we will manage well._";

begintalknode;
	state = 40;
	nextstate = 43;
	condition = gf(1,13) <= 1;
	question = "_I require more resources to calm the Rokaj._";
	text1 = "_Well, it is interesting that you ask. I have a lot of precious supplies locked away in this fort. I would give them in return for your aid._";
	text2 = "_Near here are two sacred groves of the Kranas Woods. Sacred to them. A dangerous annoyance to us. They rest on land full of valuable iron. I would pay if you could help us extract it._";

begintalknode;
	state = 43;
	nextstate = 44;
	condition = 1;
	question = "_And how are these resources extracted?_";
	text1 = "_The magic of the groves must be destroyed. It is not actually difficult. Under the Governor's direction, several such groves have already been extracted._";
	text2 = "_If you can neutralize the magic of these two groves, Haven will have more wealth. I will make sure that some of it goes to you. Not just iron, not just gold, but precious and rare quicksilver as well!_";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_How does the Kranas Woods feel about us 'neutralizing' their groves?_";
	text1 = "_Oh, opinions vary. A few druids get angry, of course. Most of the clans here are wise enough to see that it is a small price to pay for the wealth and security Haven brings._";

begintalknode;
	state = 44;
	nextstate = 40;
	condition = gf(1,13) == 0;
	question = "_I will not do this._";
	text1 = "_Of course. New arrivals are often sentimental in such a way. If experiencing the, ah, peculiar ways of the Kranas makes you change your mind, I will be here._";

begintalknode;
	state = 44;
	nextstate = 48;
	condition = 1;
	question = "_I can neutralize a few groves._";
	text1 = "_A wise choice. I can direct you there. If you can purge the magic there, it will enable us to purchase the land and put it to use for Haven._";
	text2 = "_Even better, it will help reduce the number of rootlings and other beasts causing troubles in our operations. It will be very good for Haven._";
	code = 
		set_flag(1,13,1);
		toggle_quest(31,1);
	break;

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_And how is a grove 'neutralized'?_";
	text1 = "_Happily, this is a topic I have researched. Each grove has a core, a heart, a magic intelligence at the center of it. If this is destroyed, the magic of the grove fades. Then it is ordinary land. Valuable land._";

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Where is the first grove?_";
	text1 = "_It is called Watchfire Grove. It is to the south. Haven has already been there to try to control its magic. With limited success, alas._";

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Where is the second grove?_";
	text1 = "_It is called Deepgrove. It is in a valley to the northwest. A mysterious place. We have lost several scouts trying to determine its economic value._";
	text2 = "_For the good of Haven, of course._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,13) == 1 && gf(1,9) == 0 && gf(18,12) > 0;
	question = "_I have burned out Watchfire Grove._";
	text1 = "You tell the tale. _Bravely done. Haven's forces will be safer now. I will have one of the storerooms unlocked, and I will make sure that iron and quicksilver are sent to aid Haven's forts._";
	code =
		set_flag(1,9,1);
		sf(1,14,1);
		award_party_xp(SMALL_QUEST_XP);
		change_coins(200,TRUE);

		activate_mine_resource(13);
	break;		

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,13) == 1 && gf(1,10) == 0 && gf(19,12) > 0;
	question = "_I have destroyed Deepgrove._";
	text1 = "You tell the tale. Matyas shudders. _I truly don't know how you can face down such horrors. You have done real good for Haven. I will have one of the storerooms unlocked, and I will make sure that iron and quicksilver are sent to aid Haven's forts._";
	code =
		set_flag(1,10,1);
		sf(1,15,1);
		award_party_xp(SMALL_QUEST_XP);
		change_coins(200,TRUE);
		activate_mine_resource(14);
	break;		
		

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,13) == 1 && gf(1,10) > 0 && gf(1,9) > 0;
	question = "_Both groves have been burned out._";
	text1 = "_Then the dark magic that infests the southern region is gone._ He laughs. _The Raasa was complaining that his groves were attacking his people. I'm sure this will solve the problem for him. Just not in the way he wanted._";
	text2 = "_Thank you, [P]. You are a great warrior for Haven. No matter what anyone says._";
	code =
		set_flag(1,13,2);
		toggle_quest(31,10);
		award_party_xp(SMALL_QUEST_XP);
	break;		

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,13) == 1 && (gf(18,12) == 0 || gf(19,12) == 0);
	question = "_I am not doing any more damage to the groves._";
	text1 = "_That is your choice, [P]. It might even be wise. Thank you for letting me know._";
	code =
		set_flag(1,13,2);
		toggle_quest(31,10);
	break;		

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,13) > 1;
	question = "_I need still more resources._";
	text1 = "_I wish I could help, truly I do, but I have shared all I can. You should go to Laskara, or the northern half of the Kranas._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "He bows. _I am honored that you found the time to visit us._";
	action = END_TALK;
	
	
// Hermina

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "There is an old Havenite woman in this warehouse. She is moving among the piles of equipment and building supplies, making notes on a clipboard. She is in a cheery mood. Every time she checks something off, she lets out a little whistle.";
	text2 = "She turns to you and bows deeply, as expected. She clearly expected you. _Welcome, [P]. If you are looking for the Chief of the fort, she is through there._ She points at the door to the west. _I am Hermina, but a humble quartermaster._";
	text5 = "Hermina reacts to your presence with proper deference. She stops her work and stands at attention, eager to answer any question.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_What do you do here?_";
	text1 = "_Haven depends on organization. Contracts. Records. And, most importantly, the proper delivery and distribution of food and equipment. A starving army is simply no good._";
	text2 = "_I take stock of everything delivered to [F1] and make sure it gets to where it should go._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_Such as the stuff in this hall?_";
	text1 = "_Yes. All of this lumber and tar and such has come to me. I will determine where it should all go, and send it there._";

begintalknode;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "_This fort seems short on supplies._";
	text1 = "She grows nervous. _Yes. Well. It has been difficult to get everything we need out here in the wilderness. Things come to our warehouse and then they disappear. Stolen._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = gf(1,8) == 0;
	question = "_So the Rokaj steal our supplies._";
	text1 = "_Ahhhh ... yes. Definitely. They sneak into the fort and steal._ Now she is very nervous. You detect dishonesty. Plus, even the Ro couldn't sneak a ton of lumber out of a Havenite fort, no matter how poorly staffed.";
	text2 = "_Things disappear. It's a part of life in a hostile wilderness._";

begintalknode;
	state = 73;
	nextstate = 74;
	condition = 1;
	question = "_Maybe I should investigate this situation thoroughly._";
	text1 = "_But you are so busy! So much to do! So much diplomacy! Just to find out what happened to a few bags. Like this one._ She reaches under some barrels and pulls out a large, leather sack. When she shakes it, you can hear the coins jingle inside.";
	text2 = "_I know that you have been denied proper supplies. As [P], you can easily help yourself to this bag._";

begintalknode;
	state = 74;
	nextstate = 70;
	condition = 1;
	question = "_I refuse your bribe, and I will have you punished for this._";
	text1 = "Hermina sighs. _You are right. I should be punished. I will make sure to confess to Governor Yvette and receive the fate I deserve._";
	text2 = "She hides the bag again.";
	code =
		sf(1,8,1);
		queen_faction(2);
	break;
	
begintalknode;
	state = 74;
	nextstate = 70;
	condition = 1;
	question = "_I don't need payment._";
	text1 = "_But I want you to have it! It will help you greatly. I can see that the Queen did not properly outfit you. Come back later. It will still be here._";

begintalknode;
	state = 74;
	nextstate = 70;
	condition = 1;
	question = "_I will accept this tribute._";
	text1 = "You take the bag of coins. It is indeed a generous payment. Hermina smiles. _Supplies move around. Sometimes they are diverted. Money moves around. Sometimes it gets diverted. That is the way things work out here on the frontier. I am glad that you accept it, [P]._";
	code =
		sf(1,8,1);
		change_coins(250,TRUE);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "_What is the situation in the Kranas Woods?_";
	text1 = "_I'm afraid I don't know. I never leave this fort, if at all possible. From what I hear, the trees started attacking people a few months ago._";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "_I want to purchase equipment._";
	text1 = "_I am glad. This fort aches for its stores to be rebuilt. Then we will have merchants to tax._";

begintalknode;
	state = 70;
	nextstate = 75;
	condition = 1;
	question = "_How did you get this job?_";
	text1 = "She gives a wicked smile. _I've been here for years. Governor Yvette saw a unique quality in me._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_And what 'unique' quality did Governor Yvette see?_";
	text1 = "She laughs. _I am her cousin._";
	text2 = "_Actually, I am one of quite a few cousins. So it's not a unique quality at all, I'm afraid._";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				